package com.xu.cloud.codegenerator.exception;

import com.xu.cloud.common.enums.ExceptionEnum;

/**
 * @author xuguan
 * @since 2024/1/23
 */
public enum GeneratorErrorCodeEnum implements ExceptionEnum<GeneratorErrorCodeEnum> {
    ERR_RENDER_TEMPLATE("1001", "表名{}, 模板渲染失败"),
    ERR_GENERATE_CODE("1002", "生成代码异常"),
    ;

    private final String code;
    private final String message;

    GeneratorErrorCodeEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
